﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using L = Science.Mathematics.LinearAlgebra;

namespace Strang3Ed.Chapter03.Section2
{
    public class Example02
    {
        public Example02()
        {
        }
        private string result;
        public string Result
        {
            get { return result; }
        }
        public void Compute()
        {
            double[,] a = { { 1.0, 2.0}, 
                            { 3.0, 6.0} };

            L.Matrix A = new L.Matrix(a);

            L.Nullspace N = new L.Nullspace(A);

            double[] x = { 3.0 };
            L.Vector v = N.LinearCombination(x);

            result += v.ToString();
        }
    }
}
/*
-6     3  
*/
